package com.example.curd.mapper;

import com.example.curd.entity.Good;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dakai
 * @since 2021-04-18
 */
@Mapper
public interface GoodMapper extends BaseMapper<Good> {

  List<Good> selectAllGood();

  Good getGoodById(Integer gid);

  void updateGood(Good good);

  void deleteGood(Integer gid);

  void addGood(Good good);
}
